package wangxiaotao.converter;

import org.mapstruct.Mapper;
import wangxiaotao.bean.vo.OrderUserVO;
import wangxiaotao.bean.vo.OrderVO;
import wangxiaotao.bean.vo.UserOrderVO;
import wangxiaotao.entity.Order;

@Mapper(componentModel = "spring")
public interface OrderConverter {

    OrderVO toOrderVO(Order order);

    OrderUserVO toOrderUserVO(Order order);

    Order toOrder(OrderVO orderVO);

    UserOrderVO toUserOrderVO(Order order);

    Order toOrderForUserOrderVO(UserOrderVO userOrderVO);
}
